package com.zzzzzz.topic.model;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

public class AddTopicForm {
	private String title;
	private String content;
	private String category;
	private CommonsMultipartFile files;
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public CommonsMultipartFile getFiles() {
		return files;
	}
	public void setFiles(CommonsMultipartFile files) {
		this.files = files;
	}
	
	public void getPo(Topic topic){
		topic.setTitle(title);
		topic.setContent(content);
	}
	
}
